{% extends "layout.html" %}
{% from "macros/_form.html" import render_errors %}

{%- block content %}
<form action="" method="post" class="form-horizontal">
    {{ form.hidden_tag() }}
  <div class="form-group">
    <label class="col-sm-2 control-label">Username</label>
    <div class="col-sm-3">
      <!--<input type="email" class="form-control" id="username" placeholder="Email">-->
        {{form.username(size=30,class="form-control",id="username",placeholder="Username or your email")}}
    </div>
  </div>
  <div class="form-group">
    <label class="col-sm-2 control-label">Password</label>
    <div class="col-sm-3">
      <!--<input type="password" class="form-control" id="password" placeholder="Password">-->
        {{form.password(size=30,class="form-control",id="password",placeholder="Password")}}
    </div>
  </div>
  <div class="form-group">
    <div class="col-sm-offset-2 col-sm-10">
      <div class="checkbox">
        <label>
          <!--<input type="checkbox"> Remember me-->
            {{form.remember}}Remember me
        </label>
      </div>
    </div>
  </div>
  <div class="form-group">
    <div class="col-sm-offset-2 col-sm-10">
      <button type="submit" class="btn btn-default">Sign in</button>
    </div>
  </div>
</form>
{%- endblock %}